/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sisvoto.ModeloDAO;

import java.util.List;
import sisvoto.DAO.DAOAbstract;
import sisvoto.modelo.PrivilegioUsuario;

/**
 *
 * @author Dianita
 */
public class PrivilegioUsuarioDAO extends DAOAbstract<PrivilegioUsuario> {

    public PrivilegioUsuarioDAO(PrivilegioUsuario t) {
        super(t);
    }

    @Override
    public List<PrivilegioUsuario> buscarTodos() {
       javax.persistence.Query consulta = this.getEntityManager().createQuery("Select privusu from PrivilegioUsuario privusu");
        return consulta.getResultList();
    }
    
    
    
    
}
